package com.spt.springbootzhsx.service.suggest.Get_MTMC_mul_UWL_5;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

public class MU_M_Mapper extends Mapper<LongWritable, Text, MUbean, Text> {
    @Override
    protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
        String[] val=value.toString().split("\t");
        context.write(new MUbean(val[0], 1), new Text(val[1]));
    }
}
